package cn.yesway.proxy.dynamic1;

import cn.yesway.proxy.static1.ITalk;
import cn.yesway.proxy.static1.PeopleTalk;

/**
 * 动态代理测试类
 * 
 * @comment:
 * @author chencq
 * @Email:hero901027@163.com
 */
public class Test {

	public static void main(String[] args) {
		// 绑定代理，这种方式会在所有的方法都加上切面方法
		ITalk iTalk = (ITalk) new DynamicProxy().bind(new PeopleTalk());
		iTalk.talk("业务说明");
	}
}